/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 致承
 */

// 获取验证码
export const getCaptcha = "http://www.127yjs.com/new_captcha.html"
// 登录
export const getLogin = "http://chengzhipt.com/api/account/userlogin"
// 获取cookie
export const getCookie = "http://chengzhipt.com/Wap/Home/Index"
// 选择平台类型
export const getBuyList = "http://chengzhipt.com/Wap/Home/GetBuyList"
// 接单
export const getOneKeyReceiptStart = "http://chengzhipt.com/Wap/Home/OneKeyReceiptStart"
// 停止接单
export const getOneKeyReceiptStop = "http://chengzhipt.com/Wap/Home/OneKeyReceiptStop"

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: param.headers,
        dataType: 'json',
        returnAll: param.returnAll || false,
        data: {
            values: param.data
        }
    }, fun)
}
